package com.wangjiyuan.shiwupai.ui_food.food_class;

import com.wangjiyuan.shiwupai.base.IBaseModel;
import com.wangjiyuan.shiwupai.base.IBasePresenter;
import com.wangjiyuan.shiwupai.base.IBaseView;
import com.wangjiyuan.shiwupai.bean.first_food.FoodBean;
import com.wangjiyuan.shiwupai.bean.first_food.FoodClassBean;
import com.wangjiyuan.shiwupai.bean.first_food.FoodSortBean;

import java.util.Map;

import retrofit2.http.Path;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by QXL on 2016/11/30.
 */

public class FoodClassContract {
    public static interface IFoodClassModel extends IBaseModel{
        Observable<FoodClassBean> getFoodClassObservable(Map<String,String> map);

        Observable<FoodSortBean> getSortObservable(Map<String, String> map);
    }

    public static interface IFoodClassPresenter extends IBasePresenter{
        void getFoodClassObservable(Map<String,String> map);
        void getNextFoodClassObservable(Map<String,String> map);
        void getSortObservable( Map<String, String> map);
    }

    public static interface IFoodClassView extends IBaseView{
        void showProgress();
        void hideProgress();
        void loadFoodClassData(FoodClassBean foodClassBean);
        void loadNextFoodClassData(FoodClassBean foodClassBean);
        void loadSort(FoodSortBean foodSortBean);
    }
}
